//
//  WSChannelVideoCell.m
//  CharonTVProject
//
//  Created by karong on 2023/7/31.
//

#import "WSChannelVideoCell.h"
#import "UIButton+ImageAlign.h"

@interface WSChannelVideoCell ()
@property (weak, nonatomic) IBOutlet UILabel *tagLabel;
@property (weak, nonatomic) IBOutlet UIButton *totalViewButton;
@end

@implementation WSChannelVideoCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setDataWithObject:(WSVideo *)object {
    [super setDataWithObject:object];
    self.tagLabel.text = object.finish_txt;
    [self.totalViewButton setTitle:[NSString ws10Thousands1DecimalWithValue:object.play_num] forState:(UIControlStateNormal)];
    [self.totalViewButton setButtonImageTitleStyle:(WSButtonImageTitleStyleLeft) padding:3];
}

@end
